package com.itsu.compoment.rabbitmq;

import com.alibaba.fastjson.JSON;
import com.itsu.compoment.socket.Message;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.core.RabbitAdmin;

import javax.annotation.Resource;

/**
 * @author 苏犇
 * @create time 2019/12/8 15:46
 */
@Slf4j
public class BootMsgConcumer {

    @Resource
    RabbitAdmin rabbitAdmin;

    public void receive(Message message) {
        log.info("收到消息：{}", JSON.toJSONString(message));
        System.err.println(JSON.toJSON(message));
    }
}
